/// Gets the item value from [map] by the [key].
dynamic getMapItem(Map<String, dynamic>? map, String key) {
  if (map == null || !map.containsKey(key)) return null;
  return map[key];
}
